package org.acghub.mtdb.xmlgen.visitor;

import org.acghub.mtdb.common.Var;
import org.acghub.mtdb.common.Visitor;

import java.io.PrintStream;

/**
 * @author zhouhe
 */
public abstract class VarMarshalVisitor implements Visitor {

    protected final Var var;
    protected final PrintStream ps;
    protected final String prefix;
    protected final boolean marshal;

    public VarMarshalVisitor(Var var, PrintStream ps, String prefix, boolean marshal) {
        this.var = var;
        this.ps = ps;
        this.prefix = prefix;
        this.marshal = marshal;
    }

    protected abstract String getMarshaledClassName();

}
